package com.cake.entity;

import java.util.Date;

import com.cake.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

public class XxProductCategory extends BaseEntity {
    /**
     * 商品分类主键
     * 表字段 : xx_product_category.id
     */
    private Long id;

    /**
     * 商品分类名
     * 表字段 : xx_product_category.name
     */
    private String name;

    /**
     * 商品分类图片地址
     * 表字段 : xx_product_category.category_img
     */
    private String categoryImg;

    /**
     * 商品分类等级
     * 表字段 : xx_product_category.grade
     */
    private Integer grade;

    /**
     * 商品分类英文名
     * 表字段 : xx_product_category.english_name
     */
    private String englishName;

    /**
     * 商品分类创建时间
     * 表字段 : xx_product_category.create_date
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 商品分类最新修改时间
     * 表字段 : xx_product_category.modify_date
     */
    private Date modifyDate;

    /**
     * 父级主键
     * 表字段 : xx_product_category.parent
     */
    private Long parent;

    /**
     * 商品分类页面标题
     * 表字段 : xx_product_category.seo_title
     */
    private String seoTitle;

    /**
     * 商品分类页面关键字
     * 表字段 : xx_product_category.seo_keywords
     */
    private String seoKeywords;

    /**
     * 商品分类页面描述
     * 表字段 : xx_product_category.seo_description
     */
    private String seoDescription;

    /**
     * 商品分类树路径
     * 表字段 : xx_product_category.tree_path
     */
    private String treePath;

    /**
     * 商户门店主键
     * 表字段 : xx_product_category.shop
     */
    private Long shop;

    /**
     * 排序位
     * 表字段 : xx_product_category.orders
     */
    private Integer orders;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_product_category
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * base64字符串
     */
    private String base64String;
    /**
     * base64位图片是否为新图标记
     */
    private Integer isNew;
    
    public Integer getIsNew() {
		return isNew;
	}

	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}

	public String getBase64String() {
		return base64String;
	}

	public void setBase64String(String base64String) {
		this.base64String = base64String;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCategoryImg() {
        return categoryImg;
    }

    public void setCategoryImg(String categoryImg) {
        this.categoryImg = categoryImg == null ? null : categoryImg.trim();
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName == null ? null : englishName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Long getParent() {
        return parent;
    }

    public void setParent(Long parent) {
        this.parent = parent;
    }

    public String getSeoTitle() {
        return seoTitle;
    }

    public void setSeoTitle(String seoTitle) {
        this.seoTitle = seoTitle == null ? null : seoTitle.trim();
    }

    public String getSeoKeywords() {
        return seoKeywords;
    }

    public void setSeoKeywords(String seoKeywords) {
        this.seoKeywords = seoKeywords == null ? null : seoKeywords.trim();
    }

    public String getSeoDescription() {
        return seoDescription;
    }

    public void setSeoDescription(String seoDescription) {
        this.seoDescription = seoDescription == null ? null : seoDescription.trim();
    }

    public String getTreePath() {
        return treePath;
    }

    public void setTreePath(String treePath) {
        this.treePath = treePath == null ? null : treePath.trim();
    }

    public Long getShop() {
        return shop;
    }

    public void setShop(Long shop) {
        this.shop = shop;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", categoryImg=").append(categoryImg);
        sb.append(", grade=").append(grade);
        sb.append(", englishName=").append(englishName);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", parent=").append(parent);
        sb.append(", seoTitle=").append(seoTitle);
        sb.append(", seoKeywords=").append(seoKeywords);
        sb.append(", seoDescription=").append(seoDescription);
        sb.append(", treePath=").append(treePath);
        sb.append(", shop=").append(shop);
        sb.append(", orders=").append(orders);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}